Optimal. Leaf size=74 \[ \frac {(d \tan (a+b x))^{1+n}}{b d (1+n)}+\frac {2 (d \tan (a+b x))^{3+n}}{b d^3 (3+n)}+\frac {(d \tan (a+b x))^{5+n}}{b d^5 (5+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2687, 276}
\begin {gather*} \frac {(d \tan (a+b x))^{n+5}}{b d^5 (n+5)}+\frac {2 (d \tan (a+b x))^{n+3}}{b d^3 (n+3)}+\frac {(d \tan (a+b x))^{n+1}}{b d (n+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 276
Rule 2687
Rubi steps
\begin {align*} \int \sec ^6(a+b x) (d \tan (a+b x))^n \, dx &=\frac {\text {Subst}\left (\int (d x)^n \left (1+x^2\right )^2 \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac {\text {Subst}\left (\int \left ((d x)^n+\frac {2 (d x)^{2+n}}{d^2}+\frac {(d x)^{4+n}}{d^4}\right ) \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac {(d \tan (a+b x))^{1+n}}{b d (1+n)}+\frac {2 (d \tan (a+b x))^{3+n}}{b d^3 (3+n)}+\frac {(d \tan (a+b x))^{5+n}}{b d^5 (5+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.26, size = 101, normalized size = 1.36 \begin {gather*} \frac {d (d \tan (a+b x))^{-1+n} \left (\left (8+6 n+n^2+2 (3+n) \cos (2 (a+b x))+\cos (4 (a+b x))\right ) \sec ^4(a+b x) \tan ^2(a+b x)+8 \left (-\tan ^2(a+b x)\right )^{\frac {1-n}{2}}\right )}{b (1+n) (3+n) (5+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.26, size = 10923, normalized size = 147.61
method | result | size |
risch | \(\text {Expression too large to display}\) | \(10923\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 77, normalized size = 1.04 \begin {gather*} \frac {\frac {d^{n} \tan \left (b x + a\right )^{n} \tan \left (b x + a\right )^{5}}{n + 5} + \frac {2 \, d^{n} \tan \left (b x + a\right )^{n} \tan \left (b x + a\right )^{3}}{n + 3} + \frac {\left (d \tan \left (b x + a\right )\right )^{n + 1}}{d {\left (n + 1\right )}}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 85, normalized size = 1.15 \begin {gather*} \frac {{\left (8 \, \cos \left (b x + a\right )^{4} + 4 \, {\left (n + 1\right )} \cos \left (b x + a\right )^{2} + n^{2} + 4 \, n + 3\right )} \left (\frac {d \sin \left (b x + a\right )}{\cos \left (b x + a\right )}\right )^{n} \sin \left (b x + a\right )}{{\left (b n^{3} + 9 \, b n^{2} + 23 \, b n + 15 \, b\right )} \cos \left (b x + a\right )^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (d \tan {\left (a + b x \right )}\right )^{n} \sec ^{6}{\left (a + b x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d\,\mathrm {tan}\left (a+b\,x\right )\right )}^n}{{\cos \left (a+b\,x\right )}^6} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________